package beans;

import java.util.List;
import be.db_backend;
import mt.middle;

import front.*;

public class Hax {
	private middle m;
	private SubForum[] subforum;
	public SubForum[] getSubforum() {
		
		List<SubForum> l = m.getAllSubForums();
		subforum = new SubForum[l.size()];
		for(int i = 0; i<l.size();i++){
			subforum[i] = l.get(i);
		}
		return subforum;
	}
	public void setSubforum(SubForum[] subforum) {
		this.subforum = subforum;
	}
	public Hax() {
		m = new middle(new db_backend());
	}
	
	public User getUser(int userID){
		return m.getUser(userID);
	}
	
	
}
